
docker run --name mongodb -p 27017:27017 -v /f/websocket-subandpub-clusters/db/mongo:/data/db -d mongo

protoc --go_out=. --go_opt=paths=source_relative --micro_out=. --micro_opt=paths=source_relative wsmessage.proto

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative cluser_status.proto

docker run -d --name kafka-raft -p 9092:9092 -e KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 -e KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT -e KAFKA_INTER_BROKER_LISTENER_NAME=PLAINTEXT -e KAFKA_INIT_KRAFT_ENABLED=true -e KAFKA_BROKER_ID=1 -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 -e KAFKA_CREATE_TOPICS="channel:8:1" -v /f/websocket-subandpub-clusters/db/kafka:/var/lib/kafka confluentinc/cp-kafka:latest